KRAM—Extended Report
نویسندگان
چکیده
Term rewriting proved to be a simple, uniform and powerful computational paradigm. Rewrite rules independently match and apply anywhere, unconstrained by the context. Rewriting is particularly appealing for defining truly concurrent systems, since rewrite rules can apply in parallel. Unfortunately, there is an inherent impediment in using term rewriting for defining concurrent systems or programming languages: overlapping rewrite rules cannot proceed concurrently. This limitation enforces an interleaving semantics in situations where one may not want it. For example, two threads accessing different regions of memory need to interleave since the corresponding rewrite rules overlap on the memory subterm. Or two message receiving operations of two distributed agents need to interleave since the corresponding rewrite rules overlap on the message pool subterm. This paper presents the concurrent rewrite abstract machine (KRAM), a generalization of term rewriting in which rules explicitly state what can be concurrently shared with other rules, like in graph rewriting. A parallel rewrite relation is defined and proved sound, complete and serializable with respect to conventional rewriting. The KRAM serves as the computational infrastructure ofK, an executable semantic framework in which programming languages, calculi, as well as type systems or formal analysis tools can be defined, making use of configurations, computations and rules. A series of examples are discussed, including a non-trivial higher-order multi-threaded distributed language; all examples were defined and executed using the K-Maude tool.
منابع مشابه
The Handbook of Mentoring at Work: Theory, Research, and Practice, by Belle Rose Ragins and Kathy E. Kram
متن کامل
Brown , Rodger Kram and Hugh Herr
physiology, especially those papers emphasizing adaptive and integrative mechanisms. It is published 12 times a publishes original papers that deal with diverse area of research in applied
متن کاملMary Beth Brown , Rodger Kram and Hugh Herr
those papers emphasizing adaptive and integrative mechanisms. It is published 12 times a year (monthly) by the American publishes original papers that deal with diverse areas of research in applied physiology, especially Journal of Applied Physiology
متن کامل